package com.aqiang.day0528_shop.user.api

import com.aqiang.day0528_shop.user.entity.UserEntity
import com.zy.shopproject2.usercenter.entity.BaseResponseEntity
import kotlinx.coroutines.Deferred
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface UserApi {
    @POST("api/User/login")
    fun login(@Body userEntity: UserEntity):Deferred<BaseResponseEntity>

    @GET("api/User/authcode")
    fun auth():Deferred<Int>

    @POST("api/User/register")
    fun register(@Body userEntity: UserEntity):Deferred<BaseResponseEntity>
}